package com.arvin.service;

import com.arvin.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;

public interface ExamService {

    /**
     * 考试信息分页
     * @param page
     * @param pageSize
     * @param studentId
     * @param stuName
     * @param className
     * @param examDate
     * @param examState
     * @param examScore
     * @return
     */
    PageBean getExamInfo(Integer page, Integer pageSize, String studentId,
                         String stuName,String className, LocalDate examDate,
                         String examState,Integer examScore);

    /**
     * 更新考试状态及分数
     * @param examId
     * @param examState
     * @param examScore
     */
    void updateExamState(Integer examId, String examState,Integer examScore);

    /**
     * 学生批量通过或不通过考试
     * @param ids
     */
    void passByExamIds(List<Integer> ids,String examState);
}
